<script>
	$(document).ready(function(){
		
		$('#kd_pt').change(function(){
			$('#kd_fakultas').load(base_url+'prosedur/getFakultasbyUniversitas/'+$('#kd_pt').val());
		});
		
		$('#kd_fakultas').change(function(){
			$('#kd_prodi').load(base_url+'prosedur/getProdibyFakultas/'+$('#kd_fakultas').val());
		});
		
	});
</script>
<form id="form1" method="post" style="margin:10px;">
	<div class="fitem" >
		<label style="width:100px">Universitas </label>:
		<select id="kd_pt" name="kd_pt" style="width:200px;">
			<?=$this->mdl_prosedur->OptionUniversitas();?>
		</select>
	</div>
	<div class="fitem" >
		<label style="width:100px;">Fakultas </label>:
			<select id="kd_fakultas" name="kd_fakultas" style="width:200px;">
					<?=$this->mdl_prosedur->OptionFakultasByUniv(array('value'=>$kd_fakultas, 'kd_pt'=>$kd_pt));?>
			</select>				
	</div>	
	<div class="fitem">
		<label style="width:100px">Prodi  </label>:
		<select id="kd_prodi" name="kd_prodi" style="width:290px;">
				<?=$this->mdl_prosedur->OptionProdi(array('value'=>$kd_prodi, 'kd_fakultas'=>$kd_fakultas));?>
		</select>
	</div>

	<input type="hidden" name="kode" id="kode" value="<?=$kode?>">
	<div class="fitem" >
		<label style="width:100px">Kode kurikulum </label>:
		<input name="kd_kurikulum" size="10" required="true" value="<?=$kd_kurikulum?>">
	</div>
	<div class="fitem" >
		<label style="width:100px">Nama Kurikulum </label>:
		<input name="nama_kurikulum" size="30" required="true" value="<?=$nama_kurikulum?>">
	</div>
	<div class="fitem" >
		<label style="width:100px;vertical-align:top;">Deskripsi </label>
		<textarea name="deskripsi" cols="35" rows="7"><?=$deskripsi?></textarea>
	</div>
	<div class="fitem" >
					<label style="width:100px">Tanggal Efektif</label>:
					<input class="easyui-datebox" name="tgl_efektif" size="13" value="<?=$tgl_efektif?>" id="tgl_efektif" data-options="formatter:DateFormatter, parser:DateParser">
				</div>
	<div class="fitem" >
		<label style="width:100px">Status</label>:		
		<input type="checkbox" name="status" <?=$status=='A'?'checked':''?>/> Aktif
	</div>
</form>
	

